package com.wind.spring.cloud.alibaba.provider.service;

import com.wind.spring.cloud.alibaba.provider.service.fallback.EchoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-provider-config",fallback = EchoServiceFallback.class)
public interface EchoService {

    @GetMapping("/echo/{string}")
    String echo(@PathVariable("string") String string);

    @GetMapping("/lb")
    String lb();
}
